package com.examp.dy.dy.controller;

import com.examp.dy.dy.entities.Accounts;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class homecontroller {
@GetMapping("/dis")
public  String error(){
    return "/main/error";
}

    @GetMapping("/login")
    public String login(){
        return "login";
    }

    @GetMapping("/logout")
    public String logout(){
        return "/logout";
    }
}
